package com.wnxy.producer.c_direct;

import com.wnxy.producer.b_ps.FanoutProducer;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class App {

    @Autowired
    private DirectProducer directProducer;

    private final String EXCHANGE_LOG = "exchange-log";

    @Test
    public void seat() {
        directProducer.sendMsg(EXCHANGE_LOG,"info","用户购票");
    }

}
